import CommonApi from './common'

class ApplicationApi extends CommonApi {
    constructor() {
        super()
        this.scope = '/ms/application'
    }
     // 导出工程数量清单地址
     static gcslqdPath = '/ms/application/bill-quantities/detail/export'
     // 导出工程数量汇总地址
     static gcslhzPath = '/ms/application/bill-quantities-collection/export'
     // 导出签证单地址
     static qzdPath ='/ms/maintrecord/exportVisaVoucher'
     // 导出档案卡地址
     static dakPath ='/ms/maintrecord/exportArchiveCard'
     // 详情内导出签证单地址
     static qzdxqPath ='/ms/application/visa-voucher/export'
     // 详情内导出档案卡地址
     static dakxqPath ='/ms/application/archive-card/export'
     //  导出日常养护计量审批单
     static spdPath = '/ms/application/export/approval'
     
     // 养护计量申请审批配置列表
     getList(data) {
         const path = this.resolvePath('/approval-config/list')
         return this.post(path, data)
     }
     // 养护计量申请审批配置新增编辑
     approveSaveOrUpdate(data) {
         const path = this.resolvePath('/approval-config/save')
         return this.post(path, data)
     }
     // 养护计量申请配置详情
     detail(data) {
         const path = this.resolvePath('/approval-config/detail')
         return this.post(path, data)
     }
     // 养护护计量申请审批配置删除
     approveDelete(data) {
         const path = this.resolvePath('/approval-config/del')
         return this.post(path, data)
     }
     // 计量申请列表查询
     getApplyList(data) {
         const path = this.resolvePath('/page-list')
         return this.post(path, data)
     }
     // 计量申请保存，选择下一步调用
     applySave(data) {
         const path = this.resolvePath('/save')
         return this.post(path, data)
     }
     // 计量申请提交
     applySubmit(data) {
         const path = this.resolvePath('/submit')
         return this.post(path, data)
     }
     // 计量申请，工程数量清单分页查询
     billQuantities(data) {
         const path = this.resolvePath('/bill-quantities/detail/page-list')
         return this.post(path, data)
     }
     // 计量申请，工程两清单汇总查询
     billQuantitiesCollection(data) {
         const path = this.resolvePath('/bill-quantities-collection/detail')
         return this.post(path, data)
     }
     // 计量申请详情
     applyDetail(data) {
         const path = this.resolvePath('/detail')
         return this.post(path, data)
     }
     // 撤销申请
     applyRevoke(data) {
         const path = this.resolvePath('/revoke')
         return this.post(path, data)
     }
     // 审批通过
     approvalPass(data) {
         const path = this.resolvePath('/approval-pass')
         return this.post(path, data)
     }
     // 审批驳回
     approvalReject(data) {
         const path = this.resolvePath('/approval-reject')
         return this.post(path, data)
     }
     //  申请删除
     applyDelete(data) {
         const path = this.resolvePath('/del')
         return this.post(path, data)
     }
}

export default ApplicationApi
